﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PaymentProcessing.aspx.cs" Inherits="_2011DBProject.PaymentProcessing" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<link rel=StyleSheet HREF='design1.css' type='text/css'>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>새벽 골프</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <p align =left>
        <asp:Button ID="btnGoLogout" runat="server" onclick="btnGoLogout_onclick" 
            Text="☜ 로 그 아 웃" Width="150px" />
        <asp:Button ID="btnGoServer" runat="server" onclick="btnGoServer_onclick" 
            Text="☜ 서 버 선 택" Width="150px" />
        </p>
        <center>
        <asp:Label ID="Label1" runat="server" Text="상품구매"></asp:Label>
        <br />
        <br />
        <asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1" 
                onitemcommand="Repeater1_ItemCommand" onitemdatabound="Repeater1_ItemDataBound">
        <HeaderTemplate>
        <table class = "normalTable">
        <tr>
            <td><font color=white>결제</font></td>
            <td><font color=white>상품이름</font></td>
            <td><font color=white>가격</font></td>
        </tr>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
                <td><asp:Button ID="btnPay" runat="server" text="결제" CommandName="selectPay"/></td>
                <td><%# Eval("PRODUCT_NAME") %></td>
                <td><%# Eval("SERVICE_PROVIDED") %></td>
            </tr>
        </ItemTemplate>
        <FooterTemplate></table></FooterTemplate>
        </asp:Repeater>
        </center>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
            SelectCommand="SELECT &quot;PRODUCT_NAME&quot;, &quot;SERVICE_PROVIDED&quot;, &quot;PRODUCT_NO&quot;, &quot;MERCHANDISE_CATEGORY&quot; FROM &quot;MERCHANDISE&quot;">
        </asp:SqlDataSource>
        <br />
        <br />
        <br />
        <br />
        <asp:Label ID="Label2" runat="server" Text="선택한 상품" Visible="False"></asp:Label>
        <br />


        
        <br />
<asp:Table ID="table44" runat="server" CellSpacing=0 CellPadding=10 
            HorizontalAlign="Center" Visible="False">
<asp:TableRow>
<asp:TableCell BorderWidth=1>상품명</asp:TableCell>
<asp:TableCell BorderWidth=1>가격</asp:TableCell>
<asp:TableCell BorderWidth=1>결제정보</asp:TableCell>
</asp:TableRow>
<asp:TableRow>
<asp:TableCell BorderWidth=1>
    <asp:Label ID="Label4" runat="server" Text="Label"></asp:Label>
</asp:TableCell>
<asp:TableCell BorderWidth=1>
    <asp:Label ID="Label5" runat="server" Text="Label"></asp:Label>
</asp:TableCell>
<asp:TableCell BorderWidth=1>
    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox></asp:TableCell>
</asp:TableRow>
<asp:TableRow>
<asp:TableCell BorderWidth=1 ColumnSpan=3>
        <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="결 제 하 기" 
            Width="270px" />
</asp:TableCell>
</asp:TableRow>
</asp:Table>
        <br />
        <br />
        <asp:Label ID="lblHid" runat="server" Font-Size="X-Large" ForeColor="#FFCC66" 
            Visible="False"></asp:Label>

        <br />
    
    </div>
    </form>

    <p>
        &nbsp;</p>
</body>
</html>